from pydantic import BaseModel
from typing import List, Optional

from services.new_services.new_server_integration.schemas.common_configuration import BlockType


class Block(BaseModel):
    block_type: str = BlockType.FSC
    cviya: str = 'ЦВИЯ.Сервисная'
    sms_count: int = 4
    rms_enabled: List[Optional[bool]] = [None, None]
    sms_enabled: List[Optional[bool]] = [False, False, None, None]
    sms_editable: List[Optional[bool]] = [False, False, True, True]
    sms_freq: List[Optional[int]] = [1800, 1800, None, None]
    radio_connection: List[Optional[bool]] = [False, False]
    optics_connection: List[Optional[bool]] = [True, True]
    sms_index: List[Optional[int]] = [0, 1, 2, 3]
